﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;

namespace Hk.Biker
{
    public class RouteConfig
    {
        public static void RegisterRoutes(RouteCollection routes)
        {
            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

            routes.MapRoute(
                name: "Index",
                url: "",
                defaults: new { controller = "Website", action = "Index" }
            );

            routes.MapRoute(
                name: "Size",
                url: "sizing",
                defaults: new { controller = "Website", action = "Sizing" }
            );

            routes.MapRoute(
                name: "Track Order",
                url: "track-order",
                defaults: new { controller = "Website", action = "TrackOrder" }
            );

            routes.MapRoute(
                name: "Cart",
                url: "cart",
                defaults: new { controller = "Website", action = "Cart" }
            );

            routes.MapRoute(
                name: "Contact",
                url: "contact",
                defaults: new { controller = "Website", action = "Contact" }
            );

            routes.MapRoute(
                name: "Send Contact",
                url: "sendcontact",
                defaults: new { controller = "Website", action = "SendContact" }
            );

            routes.MapRoute(
                name: "Product Detail",
                url: "{alias}",
                defaults: new { controller = "Website", action = "Product", alias = UrlParameter.Optional }
            );

            routes.MapRoute(
                name: "Category",
                url: "tshirt/{alias}",
                defaults: new { controller = "Website", action = "Category" }
            );

            routes.MapRoute(
                name: "Default",
                url: "{controller}/{action}/{id}",
                defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
            );
        }
    }
}